rem load remote configuration settings
call "%~sdp0Version.bat"
call "%~sdp0Source.bat"
call "%~sdp0Constant.bat"

rem set constants
set DEVENVEXEFILE=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com
set PUBLISHPATH=%TEMP%\Publish\ObjectTranspose\%MAJOR%.%MINOR%.%REVISION%
set BACKUPAPIASSEMBLYINFO=%TEMP%\ObjectTransposeApiAssemblyInfo.cs.backup
set HGTEMPFILE=%TEMP%\ObjectTranspose.%MAJOR%.%MINOR%.%REVISION%.tmp
set APISYSTEMTESTXMLFILE=%TEMP%\\NUnit-ObjectTransposeSystemTest.xml
set PUBLISHZIPFILESTART=%TEMP%\Publish\ObjectTranspose\%MAJOR%.%MINOR%.%REVISION%\ObjectTransposeApi %MAJOR%.%MINOR%.%REVISION%.
set PUBLISHZIPFILEEND= (AnyCpu, .NET 4.0).zip
set BACKUPAPISYSTEMTESTASSEMBLYINFO=%TEMP%\ObjectTransposeApiSystemTestAssemblyInfo.cs.backup
set PUBLISHAPISYSTEMTESTDLLFILE=%TEMP%\Publish\ObjectTranspose\%MAJOR%.%MINOR%.%REVISION%\ObjectTransposeApiSystemTest.dll
set RELEASEAPIDLLFILE=%~sdp0..\Source\ObjectTransposeApi\bin\Release\ObjectTransposeApi.dll
set RELEASEAPISYSTEMTESTDLLFILE=%~sdp0..\Source\ObjectTransposeApiSystemTest\bin\Release\ObjectTransposeApiSystemTest.dll
set DEBUGAPISYSTEMTESTDLLFILE=%~sdp0..\Source\ObjectTransposeApiSystemTest\bin\Debug\ObjectTransposeApiSystemTest.dll
set MSBUILDFILE=c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
set PUBLISHWEBSITEPATH=%TEMP%\Publish\ObjectTranspose\%MAJOR%.%MINOR%.%REVISION%\Website

rem replace settings with machine specific values
if exist "%~sdp0Configuration.%COMPUTERNAME%.bat" call "%~sdp0Configuration.%COMPUTERNAME%.bat"

rem exit if an error occured
if %ERRORLEVEL% NEQ 0 exit 1